﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;

namespace pklib.UI {
	public class CommandsBase {
		public static RoutedUICommand CreateCommand(String Title, Key key, ModifierKeys modifiers) {
			InputGestureCollection Inputs = new InputGestureCollection();
			Inputs.Add(new KeyGesture(key, modifiers));
			return new RoutedUICommand(Title, Title, typeof(Commands), Inputs);
		}
		public static RoutedUICommand CreateCommand(String Title) { return CreateCommand(Title, Key.None, ModifierKeys.None); }
	}
}
